package homework20.com.neuedu.controller;

import homework20.com.neuedu.service.GameServiceImpl;

public class GameController {
    GameServiceImpl gameService = new GameServiceImpl();

    public boolean add(String name) {
        gameService.add(name);
        System.out.println("添加物品成功");
        return true;
    }

    public boolean update(int A, String name) {
        gameService.update(A, name);
        System.out.println("修改物品成功");
        return true;
    }

    public boolean delete(int A) {
        gameService.delete(A);
        System.out.println("删除物品成功");
        return true;
    }

    public void find() {
        gameService.find();
    }
}
